home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / libogg / libvorbis-1.0rc3 / debian / rules < prev   
Encoding:
Text File  |  2002-10-27  |  2.1 KB  |  92 lines

  1. #!/usr/bin/make -f
  2. # Sample debian/rules that uses debhelper.
  3. # GNU copyright 1997 to 1999 by Joey Hess.
  4.  
  5. # Uncomment this to turn on verbose mode.
  6. #export DH_VERBOSE=1
  7.  
  8. # This is the debhelper compatability version to use.
  9. export DH_COMPAT=3
  10.  
  11. export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  12. export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  13.  
  14. configure: configure-stamp
  15. configure-stamp:
  16.     dh_testdir
  17.  
  18.     # If compiling cvs version change to ./autogen.sh --prefix=/usr
  19.     ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
  20.     --prefix=/usr
  21.  
  22.     touch configure-stamp
  23.  
  24. build: configure-stamp build-stamp
  25. build-stamp:
  26.     dh_testdir
  27.  
  28.     $(MAKE)
  29.  
  30.     touch build-stamp
  31.  
  32. autotools:
  33.     OLDDATESUB=`./config.sub -t | tr -d -` ;\
  34.     OLDDATEGUESS=`./config.guess -t | tr -d -` ;\
  35.     NEWDATESUB=`/usr/share/misc/config.sub -t | tr -d -` ;\
  36.     NEWDATEGUESS=`/usr/share/misc/config.guess -t | tr -d -` ;\
  37.     if [ $$OLDDATESUB -lt $$NEWDATESUB -o \
  38.          $$OLDDATEGUESS -lt $$NEWDATEGUESS ]; then \
  39.        dch -a -p "GNU config automated update: config.sub\
  40.          ($$OLDDATESUB to $$NEWDATESUB), config.guess\
  41.          ($$OLDDATEGUESS to $$NEWDATEGUESS)" ;\
  42.        cp -f /usr/share/misc/config.sub config.sub ;\
  43.        cp -f /usr/share/misc/config.guess config.guess ;\
  44.        echo WARNING: GNU config scripts updated from master copies 1>&2 ;\
  45.     fi
  46.  
  47. clean: autotools
  48.     dh_testdir
  49.     dh_testroot
  50.     rm -f build-stamp configure-stamp
  51.  
  52.     -$(MAKE) distclean
  53.  
  54.     dh_clean
  55.  
  56. install: build
  57.     dh_testdir
  58.     dh_testroot
  59.     dh_clean -k
  60.     dh_installdirs
  61.  
  62.     $(MAKE) install DESTDIR=`pwd`/debian/tmp
  63.  
  64.  
  65. # Build architecture-independent files here.
  66. binary-indep: build install
  67. # We have nothing to do by default.
  68.  
  69. # Build architecture-dependent files here.
  70. binary-arch: build install
  71.     dh_testdir
  72.     dh_testroot
  73.     dh_movefiles
  74.  
  75.     dh_installdocs
  76.     dh_installexamples
  77.     dh_installmanpages
  78.     dh_installchangelogs 
  79.     dh_link
  80.     dh_strip
  81.     dh_compress
  82.     dh_fixperms
  83.     dh_makeshlibs -V
  84.     dh_installdeb
  85.     dh_shlibdeps
  86.     dh_gencontrol
  87.     dh_md5sums
  88.     dh_builddeb
  89.  
  90. binary: binary-indep binary-arch
  91. .PHONY: autotools build clean binary-indep binary-arch binary install configure
  92.